package org.jeecg.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 设置静态参数初始化
 */
@Component
@Data
public class StaticConfig {

    @Value("${jeecg.oss.accessKey}")
    private String accessKeyId;

    @Value("${jeecg.oss.secretKey}")
    private String accessKeySecret;

    /** 邮箱主机 **/
    @Value(value = "${spring.mail.host}")
    private String emailHost;

    /** 邮件发送账号 **/
    @Value(value = "${spring.mail.username}")
    private String emailUsername;

    /** 邮件发送账号 **/
    @Value(value = "${spring.mail.username}")
    private String emailFrom;

    /** 邮件发送密码 **/
    @Value(value = "${spring.mail.password}")
    private String emailPwd;

    /** 邮箱pop **/
    @Value(value = "${spring.mail.pop}")
    private String emailPop;

    /** 阿里短信平台key **/
    @Value("${qixin.sms.accessKey}")
    private String smsAccessKeyId;
    /** 阿里短信平台密钥 **/
    @Value("${qixin.sms.secretKey}")
    private String smsAccessKeySecret;

    /*@Bean
    public void initStatic() {
       DySmsHelper.setAccessKeyId(accessKeyId);
       DySmsHelper.setAccessKeySecret(accessKeySecret);
       EmailSendMsgHandle.setEmailFrom(emailFrom);
    }*/

}
